package com.yonyou.iuap.shell.service.intf;

import java.io.InputStream;
import java.util.List;

import org.apache.commons.net.ftp.FTPClient;

public interface IFtpService {
	/**
     * 登陆FTP服务器
     */
    public void login(FTPClient ftpClient) throws Exception;
 
    /**
     * 断开服务器链接
     */
    public void logout(FTPClient ftpClient) throws Exception;
 
    /**
     * 上传本地文件
     * @return 
     */
    public boolean uploadFile(FTPClient ftpClient, String remotePath, String fileNewName, InputStream inputStream) throws Exception;
 
    /**
     * 远程文件列表
     */
    public List listFile(FTPClient ftpClient, String remotePath) throws Exception;
 
    /**
     * 下载远程文件
     */
    public InputStream downFileByFtp(FTPClient ftpClient, String remotePath, String fileName) throws Exception;
 
    /**
     * 
     * @return 
     * @描述：删除文件
     */
    public boolean delFile(FTPClient ftpClient, String pathName) throws Exception;

	public boolean uploadFile(FTPClient ftpClient, String name, InputStream in) throws Exception;

}
